﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace ForzaGT3.Areas.Admin.Models
{
    public class NewsModel
    {
        public Guid Id { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Url")]
        public string Url { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Title")]
        public string Title { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Intro")]
        [AllowHtml]
        public string Intro { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Content")]
        [AllowHtml]
        public string Content { get; set; }

        [Required(ErrorMessage = "Required")]
        [Display(Name = "News Url English")]
        public string UrlEnglish { get; set; }

        [Display(Name = "News Title")]
        public string TitleEnglish { get; set; }

        [Display(Name = "News Intro")]
        [AllowHtml]
        public string IntroEnglish { get; set; }

        [Display(Name = "News Content")]
        [AllowHtml]
        public string ContentEnglish { get; set; }

        public string Keywords { get; set; }

        public string KeywordsEnglish { get; set; }

        [Display(Name = "Image")]
        public HttpPostedFileBase Image { get; set; }

        public string ImageUrl { get; set; }

        public bool IsPublished { get; set; }
    }
}